﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;

namespace LANChatServer
{
    public class ConnectionManager : LANChatCore.ConnectionListener
    {
        public ConnectionManager()
        {
            
        }

        public override void OnNewConnection(Socket socket)
        {
            string newcon = "New connection rcvd";
            //System.Windows.Forms.MessageBox.Show();
            socket.Send(Encoding.ASCII.GetBytes(newcon));
            socket.Close();
           
        }
    }
}
